package com.cgw.dmplt.address.dao;

import java.util.List;
import org.springframework.dao.DataAccessException;
import com.cgw.dmplt.address.domain.Province;


/**
 * provinceDao�ӿ�.
 * @author sims autoCoder1.0
 *
 */
public interface ProvinceDao {
    /**
     * insert.
     * @param province province
     * @return id
     * @throws DataAccessException DataAccessException
     */
    String insertProvince(Province province) throws DataAccessException ;

    /**
     * delete.
     * @param province province
     * @throws DataAccessException DataAccessException
     */
    void deleteProvince(Province province) throws DataAccessException ;
    
    /**
     * update.
     * @param province province
     * @throws DataAccessException DataAccessException
     */
    void updateProvince(Province province) throws DataAccessException ;

    /**
     * find.
     * @param id id
     * @return province
     * @throws DataAccessException DataAccessException
     */
    Province findProvince(Integer id) throws DataAccessException ;
    
    /**
     * list.
     * @param province province
     * @return province list
     * @throws DataAccessException DataAccessException
     */
    List listProvince(Province province) throws DataAccessException ;
    
    /**
     * listCount.
     * @param province province
     * @return list count
     * @throws DataAccessException DataAccessException
     */
    Integer listProvinceCount(Province province) throws DataAccessException ;
}
